import { createStore } from 'vuex'
import user from './user'
import createPersistedState from 'vuex-persistedstate'
export default createStore({
    modules:{user},
    plugins:[createPersistedState({
        storage: window.sessionStorage,
        // reducer(val) {
        //     return { // 只储存state中的user
        //         user: val.base
        //     }
        // }
    })]
})
